return result;
}
+/**
+ * gtk_print_unix_dialog_get_selected_printer:
+ * @dialog: a #GtkPrintUnixDialog
+ *
+ * Gets the currently selected printer.
+ *
+ * Returns: the currently selected printer
+ *
+ * Since: 2.10
+ */
GtkPrinter *
gtk_print_unix_dialog_get_selected_printer (GtkPrintUnixDialog *dialog)
{
return dialog->priv->current_printer;
}
+/**
+ * gtk_print_unix_dialog_set_page_setup:
+ * @dialog: a #GtkPrintUnixDialog
+ * @page_setup: a #GtkPageSetup
+ *
+ * Sets the page setup of the #GtkPrintUnixDialog.
+ *
+ * Since: 2.10
+ */
void
gtk_print_unix_dialog_set_page_setup (GtkPrintUnixDialog *dialog,
GtkPageSetup *page_setup)
}
}
+/**
+ * gtk_print_unix_dialog_get_page_setup:
+ * @dialog: a #GtkPrintUnixDialog
+ *
+ * Gets the page setup that is used by the #GtkPrintUnixDialog.
+ *
+ * Returns: the page setup of @dialog.
+ *
+ * Since: 2.10
+ */
GtkPageSetup *
gtk_print_unix_dialog_get_page_setup (GtkPrintUnixDialog *dialog)
{
return dialog->priv->page_setup;
}
+/**
+ * gtk_print_unix_dialog_set_current_page:
+ * @dialog: a #GtkPrintUnixDialog
+ * @current_page: the current page number.
+ *
+ * Sets the current page number. If @current_page is not -1, this enables
+ * the current page choice for the range of pages to print.
+ *
+ * Since: 2.10
+ */
void
gtk_print_unix_dialog_set_current_page (GtkPrintUnixDialog *dialog,
gint current_page)
}
}
+/**
+ * gtk_print_unix_dialog_get_current_page:
+ * @dialog: a #GtkPrintUnixDialog
+ *
+ * Gets the current page of the #GtkPrintDialog.
+ *
+ * Returns: the current page of @dialog
+ *
+ * Since: 2.10
+ */
gint
gtk_print_unix_dialog_get_current_page (GtkPrintUnixDialog *dialog)
{
return FALSE;
}
+/**
+ * gtk_print_unix_dialog_set_settings:
+ * @dialog: a #GtkPrintUnixDialog
+ * @settings: a #GtkPrintSettings, or %NULL
+ *
+ * Sets the #GtkPrintSettings for the #GtkPrintUnixDialog. Typically,
+ * this is used to restore saved print settings from a previous print
+ * operation before the print dialog is shown.
+ *
+ * Since: 2.10
+ **/
void
gtk_print_unix_dialog_set_settings (GtkPrintUnixDialog *dialog,
GtkPrintSettings *settings)
g_object_notify (G_OBJECT (dialog), "print-settings");
}
+/**
+ * gtk_print_unix_dialog_get_settings:
+ * @dialog: a #GtkPrintUnixDialog
+ *
+ * Gets a new #GtkPrintSettings object that represents the
+ * current values in the print dialog. Note that this creates a
+ * <emphasis>new object</emphasis>, and you need to unref it
+ * if don't want to keep it.
+ *
+ * Returns: a new #GtkPrintSettings object with the values from @dialog
+ *
+ * Since: 2.10
+ */
GtkPrintSettings *
gtk_print_unix_dialog_get_settings (GtkPrintUnixDialog *dialog)
{